﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Ranji_2017_Umlite
{
    public partial class MyChart : UserControl
    {
        public MyChart()
        {
            InitializeComponent();
        }

        private void MyChart_Load(object sender, EventArgs e)
        {

        }

        /// 设置八条线是否可用         
        public void Enable_line(bool isenable,int line_num)
        {
            if (line_num >= 1 && line_num <= 8)
            {
                chart1.Series[line_num - 1].Enabled = isenable;
            }
        }
 
        // 设置八条线的颜色

        public void Set_Line_Color(Color mycolor, int line_num)
        {
            if (line_num >= 1 && line_num <= 8)
            {
                chart1.Series[line_num - 1].Color = mycolor;
            }
        }

        // 设置八条线的名字
        public void Set_Line_Name(string line_name,int line_num)
        {

        }
    }
}
